<?php

namespace App;

use Illuminate\Database\Eloquent\Model;


class Article extends Model
{

    public function scopeType($query,$val)
    {
        return $query->where('type',$val);
    }
}
